package com.dyylearn.review.exception_;

import java.io.FileInputStream;
import java.io.IOException;

/**
 * @author green-citrus
 * @version 1.0
 */
public class Exception02 {
    public static void main(String[] args) {
        try {
            FileInputStream fis;
            fis = new FileInputStream("d:\\aa.jpg");
            int len;
            while((len = fis.read()) != -1) {
                System.out.println(len);
            }
            fis.close();
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
